check whether a character is an alphabet or not